home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_10
/
1010032a
< prev
next >
Wrap
Text File
|
1992-08-08
|
705b
|
27 lines
/* Listing 1 */
/*****************************************************
Name: DBG_RTRN.H
Description: Macro wrapper for return keyword
Portability: Standard C
*****************************************************/
#if !defined ( DBG_RTRN_DEFINED )
#if !defined ( NDEBUG )
#define return( Arg ) \
do \
{ \
if ( Arg != EXIT_SUCCESS ) \
fprintf( stderr, "\nRETURN VALUE: "\
"%d\n\tFILE: %s\n\tLINE: %d\n", \
Arg, __FILE__, __LINE__ ); \
return ( Arg ); \
} while ( 0 )
#endif
#define DBG_RTRN_DEFINED
#endif
/* End of File */